<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ page import="com.foreknow.model.Guestbook" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/2/27
  Time: 20:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
%>


<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/bootstrap.min.css">
</head>
<body>
<%
    //获取保存在服务器端的数据
//根据key值就可以获取到对应的value
    Guestbook gb = (Guestbook) request.getAttribute("gb");

%>
<table class="table table-hover">
    <tr>
        <td><%=gb.getId()%></td>
        <td><%=gb.getName()%></td>
        <td><%=gb.getPhone()%></td>
        <td><%=gb.getEmail()%></td>
        <td><%=gb.getTitle()%></td>
        <td><%=gb.getContent()%></td>
        <td><%=gb.getCreatedtime()%></td>
        <td>

        </td>



    </tr>

    <from   method="post" action="/user/manager">
        <tr >
            <td>用户名:&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td><input type="text" name="name"  %></td></tr>

        <tr><td>手机号码:&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td><input type="text" phone="phone"%></td></tr>

        <tr><td>邮箱:&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td><input  type="text" email="email"></td></tr>

        <tr><td>Title:&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td><input  type="text" title="title"></td></tr>

        <tr><td>Concent:&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td><input  type="text" content="content"></td></tr>

        <button type="submit"  href="<%=path%>/user/manager"?id=<%=gb.getId()%>&q=update"  class="btn btn-primary btn-lg">修改</button>
             <input type="hidden" name="q" value="update">
             <input type="hidden" name="id" value="<%=gb.getId()%>">
    </from>




  <%
        %>


</body>
</html>
